import request from '@/utils/request'
//品牌列表数据
export const reqTrademarkList = (page,limit) => request.get(`/admin/product/baseTrademark/${page}/${limit}`)

//更新或存储品牌数据
export const reqAddOrUpdateTrademark = data => { 
    if (data.id) {
        return request.put('/admin/product/baseTrademark/update',data)
    } else { 
        return request.post('/admin/product/baseTrademark/save',data)
    }
}

// 删除品牌
export const reqDeleteTrademark = id => request.delete(`/admin/product/baseTrademark/remove/${id}`)